<template>
  <div>
    <input type="number" v-model.number="count" />
    <button @click="stopHandle">停止监听</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      count: 100
    }
  },
  created() {
    this.stop = this.$watch('count', (value) => {
      console.log('watch', value)
    })
  },
  methods: {
    stopHandle() {
      this.stop()
    }
  }
}
</script>

<style lang="scss" scoped></style>
